package com.hk.shop.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hk.shop.base.service.BaseServiceImpl;
import com.hk.shop.dao.CategoryDao;
import com.hk.shop.model.Category;
import com.hk.shop.service.CategoryService;

@Transactional
@Service(value = "categoryService")
public class CategoryServiceImpl extends BaseServiceImpl<Category, Integer> implements CategoryService {

	@Autowired
	public CategoryDao categoryDao;

	@Override
	@Transactional(readOnly = true)
	public List<Category> getCategory(){
		
		return categoryDao.findAllResult();
	}

}
